package com.example.mvpdemo.base;

/**
 * Date:2019/11/6
 * <p>
 * Author:wuzhiguang
 * <p>
 * Description:
 *      出参的基类
 */
public class BaseResult {

    protected int code; //200成功 非200失败
    private final int SUC = 200;
    protected String msg;//提示信息

    public boolean isSuccess() {
        return code == SUC;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }




}
